package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * @version 1.0
 * @Description:
 * @author: Rock
 * @time: 2020/9/16 15:33
 */
@Data
@Document("device_location")
public class DeviceLocation implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    @Field("i")
    private String imei;

    private String lon;

    private String lat;

    private String city;

    private String addr;

    private String radius;

    private String adcode;

    @Field("T")
    /**
     * 定位类型: LBS ,WIFI , GPS
     */
    private String type;

    // 是否是异常点
    private Integer isAbnormal;

    private Integer useBgAdd;

    @Field("t")
    private Double time;

    @Field("origin_data")
    private Map<String, Object> originData;

    private Date expiryAt;

    @Transient
    private String timeStr;

}
